home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000048_icon-group-sender _Mon Jun 1 16:29:35 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id QAA08263
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 1 Jun 1998 16:29:34 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA02320; Mon, 1 Jun 1998 16:29:27 -0700
  7. Date: Mon, 1 Jun 1998 17:11:58 -0500
  8. Message-Id: <199806012211.RAA06897@segfault.cs.utsa.edu>
  9. From: Clinton Jeffery <jeffery@segfault.cs.utsa.edu>
  10. To: abrahams@acm.org
  11. Cc: icon-group@optima.CS.Arizona.EDU
  12. In-Reply-To: <9805300228.AA0191@valinet.com> (message from Paul Abrahams on
  13.     Fri, 29 May 98 22:28:40 -0400)
  14. Subject: Re: Annoying things
  15. Reply-To: jeffery@cs.utsa.edu
  16. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  17. Status: RO
  18. Content-Length: 1036
  19.  
  20.  
  21.    [Paul Abrahams wrote:]
  22.    Given the variances among operating systems, perhaps there ought to be a
  23.    convention that the first space-delimited item in each line produced by
  24.    open(dirname) is the filename.
  25.  
  26. This is not a bad suggestion.  Certainly the format of the string should
  27. follow conventions that preserve portability.  Some operating systems
  28. (Macintosh, and recent versions of Windows) allow spaces in filenames!
  29.  
  30.    This does seem close to my earlier suggestion that reading a directory
  31.    should act as a generator of the filenames within the directory.
  32.  
  33. That's because my current Windows directory reading facility was inspired
  34. directly by your suggestion.  It was a good suggestion, Paul!  It isn't
  35. technically a generator, although you can use the generate operator (!)
  36. to get a generator of filenames, as in:
  37.  
  38.     f := open(dirname)
  39.     every filename := !f do ...
  40.  
  41. Clint Jeffery, jeffery@cs.utsa.edu
  42. Division of Computer Science, The University of Texas at San Antonio
  43. Research http://www.cs.utsa.edu/research/plss.html
  44.